# coding:utf-8
"""
@author: jing
@contact: 529548204@qq.com
@file: baseModel.py
@time: 2022/6/24 15:54
"""
from django.db import models
from django.utils.timezone import now


class BaseModel(models.Model):
    create_time = models.DateTimeField(verbose_name="创建时间", default=now)
    update_time = models.DateTimeField(auto_now=True, verbose_name="更新时间")

    class Meta:
        abstract = True
